﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccess;
using System.Data;
using BusinessEntities;

namespace BusinessLogicLayer
{
    public class TaiKhoan_Manager
    {
        public TaiKhoan_Adapter tk = new TaiKhoan_Adapter();
        public DataTable TaiKhoanDN_TimTheoTenTK(string taikhoan, string matkhau)
        {
            return tk.TaiKhoanDN_TimTheoTenTK(taikhoan, matkhau);
        }
        public DataTable TaiKhoanDN_All()
        {
            return tk.TaiKhoanDN_All();
        }
        public DataTable NhanVien_KoTK()
        {
            return tk.NhanVien_KoTK();
        }
        public DataTable NhanVien_KoTK_TimTheoMaNV(string MaNV)
        {
            return tk.NhanVien_KoTK_TimTheoMaNV(MaNV);
        }

        public int TaiKhoanDN_Them(TaiKhoan_Info info)
        {
            return tk.TaiKhoanDN_Them(info);
        }

        public int TaiKhoanDN_CapNhat_CauHoi(TaiKhoan_Info info)
        {
            return tk.TaiKhoanDN_CapNhat_CauHoi(info);
        }

        public int TaiKhoanDN_ThayDoiMK(string TaiKhoan, string MatKhau, string MatKhauMoi)
        {
            return tk.TaiKhoanDN_ThayDoiMK(TaiKhoan, MatKhau, MatKhauMoi);
        }

        public DataTable TaiKhoanDN_LayMatKhau(string TaiKhoan, string CauHoiBiMat, string CauTraLoi)
        {
            return tk.TaiKhoanDN_LayMatKhau(TaiKhoan, CauHoiBiMat, CauTraLoi);
        }
        public string TaiKhoanDN_LayCauHoiBiMat(string TaiKhoan)
        {
            return tk.TaiKhoanDN_LayCauHoiBiMat(TaiKhoan);
        }
        public int TaiKhoanDN_UpDateMatKhau(string TaiKhoan, string Matkhaumoi, string Matkhaunhaplai)
        {
            return tk.TaiKhoanDN_UpDateMatKhau(TaiKhoan, Matkhaumoi, Matkhaunhaplai);
        }
    }
}
